home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / Basic / Visual Basic.60 / COMMON / TOOLS / VCM / VCM.MDB / VcmComponentContainer / 20_Cabinet / SAMPWIZP.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-18  |  2.1 KB  |  72 lines

  1. // SampWizP.cpp : implementation file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "stdafx.h"
  14. #include "SampWiz.h"
  15. #include "WizPage.h"
  16.  
  17. #ifdef _DEBUG
  18. #define new DEBUG_NEW
  19. #undef THIS_FILE
  20. static char THIS_FILE[] = __FILE__;
  21. #endif
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CSampWizP
  25.  
  26. IMPLEMENT_DYNAMIC(CSampWizPropSheet, CPropertySheetEx)
  27.  
  28. CSampWizPropSheet::CSampWizPropSheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage,
  29.                                      HBITMAP hbmWatermark, HPALETTE hpalWatermark, HBITMAP hbmHeader)
  30.     :CPropertySheetEx(nIDCaption, pParentWnd, iSelectPage,
  31.                       hbmWatermark, hpalWatermark, hbmHeader)
  32. {
  33.     // add all the pages of the wizard
  34.     AddPage(&m_Intro);
  35.     AddPage(&m_Interior1);
  36.     AddPage(&m_Interior2);
  37.     AddPage(&m_Completion);
  38.  
  39.     // set the WIZARD97 flag so we'll get the new look
  40.     m_psh.dwFlags |= PSH_WIZARD97;
  41. }
  42.  
  43. CSampWizPropSheet::CSampWizPropSheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage,
  44.                                      HBITMAP hbmWatermark, HPALETTE hpalWatermark, HBITMAP hbmHeader)
  45.     :CPropertySheetEx(pszCaption, pParentWnd, iSelectPage,
  46.                       hbmWatermark, hpalWatermark, hbmHeader)
  47.  
  48. {
  49.     // add all the pages of the wizard
  50.     AddPage(&m_Intro);
  51.     AddPage(&m_Interior1);
  52.     AddPage(&m_Interior2);
  53.     AddPage(&m_Completion);
  54.  
  55.     // set the WIZARD97 flag so we'll get the new look
  56.     m_psh.dwFlags |= PSH_WIZARD97;
  57. }
  58.  
  59. CSampWizPropSheet::~CSampWizPropSheet()
  60. {
  61. }
  62.  
  63.  
  64. BEGIN_MESSAGE_MAP(CSampWizPropSheet, CPropertySheetEx)
  65.     //{{AFX_MSG_MAP(CSampWizPropSheet)
  66.         // NOTE - the ClassWizard will add and remove mapping macros here.
  67.     //}}AFX_MSG_MAP
  68. END_MESSAGE_MAP()
  69.  
  70. /////////////////////////////////////////////////////////////////////////////
  71. // CSampWizPropSheet message handlers
  72.